package cn.com.api.mapper;

import java.util.List;
import java.util.Map;






import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiU_discover_comment;
import cn.com.api.mapper.base.U_discover_commentMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiU_discover_commentMapper extends U_discover_commentMapperBase {

 	//新增对象后返回记录ID
    public int U_discover_commentInsertion(ApiU_discover_comment u_discover_comment);

	public List<ApiU_discover_comment> findU_discover_comments_condition(@Param("map") 
			Map<String, Object> param, PageInfo pageInfo);
	
	
	@Update("update u_discover_comment set REPLY_COUNT = nvl(REPLY_COUNT,0) + 1 where comment_id = #{comment_id}")
	public void updateU_discover_comment_count(String comment_id);
    
}


